
<?php
$game_id = $_GET['selection'];
include("Libraries/BusinessLogic/games.php");
$gameDetails=get_game_details($game_id);

// xwrismos dedomenwn se metavlites wste na einai poio aplos o kwdikas parakatw
$title = $gameDetails['title'];
$img= $gameDetails['img'];
$date= $gameDetails['release_date'];
$category= $gameDetails['category'];
$rate= $gameDetails['rate'];
$review=$gameDetails['review'];

?>
<html>
<!-- <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
</head> -->
<center>
<body>
<table width="500" border="8" cellspacing="0" cellpadding="0">

		<tr>
			<td height="250" valign="top">
				<center>
				<img src=".<?php echo $img; ?>" alt="image" width="auto" height="auto"/>
				<tr>
					<td width="500" align="left" valign="top" bgcolor="CCFFCC">
					<table width="500" border="2" cellspacing="0" cellpadding="0"> 
					</td>
				</tr>
			</td>
			<tr>
	</tr>
	<tr>
		<td align="left">Title: <t><?php echo $title;?></td>
	</tr>
	<tr>
		<td align="left">Release Date:<?php echo $date;?> </td>
	</tr>
	<tr>
		<td align="left">Category:<?php echo $category;?></td>
	</tr>
	<tr>
		<td align="left">Rate:<?php echo $rate;?></td>
	</tr>
	<tr>
		<td align="left">
			<table border="2" cellspacing="0" cellpadding="0">
				Review:	<br> <?php echo $review;?>
			</table>
		</td>
	</tr>
	<tr>
		<td align="left">
			<SELECT NAME="gourl">
				<OPTION VALUE="">Your Rating
				<OPTION VALUE="1" >1
				<OPTION VALUE="2" >2
				<OPTION VALUE="3" >3
				<OPTION VALUE="4" >4
				<OPTION VALUE="5" >5
				<OPTION VALUE="6" >6
				<OPTION VALUE="7" >7
				<OPTION VALUE="8" >8
				<OPTION VALUE="9" >9
				<OPTION VALUE="10" >10
			</SELECT>
			<INPUT TYPE=SUBMIT VALUE="Submit">
		</td>
	</tr>
		<td>
			<form method="post" action="">
			<!--vasilis: 51x5=255 chars-->
				Leave a comment...<textarea name="comments" cols="51" rows="5">
				</textarea>
				<input type="submit" value="Submit your comment" />
			</form>
		</td>
		<table width="auto" border="0" cellspacing="0" cellpadding="0">
			<tbody>
				<tr>
					aaaaaaaaaaaaaa
				</tr>
			</tbody>
		</table>                       
</table>
</tr>
</td>
</table>
</body>
</html>
